CREATE TABLE [dbo].[TDDEVO_NCRP]
(
[CO_EMPR] [dbo].[TD_VC_002] NOT NULL,
[CO_PROV] [dbo].[TD_VC_020] NOT NULL,
[CO_TIPO_DOCU] [dbo].[TD_VC_003] NOT NULL,
[NU_DOCU_PROV] [dbo].[TD_VC_020] NOT NULL,
[NU_CORR] [dbo].[TD_IN_001] NOT NULL CONSTRAINT [DF__TDDEVO_NC__NU_CO__7775B2CE] DEFAULT ((0)),
[CO_ALMA] [dbo].[TD_VC_003] NOT NULL,
[TI_DOCU_DEVO] [dbo].[TD_VC_003] NOT NULL,
[NU_DOCU_DEVO] [dbo].[TD_VC_020] NOT NULL,
[CO_MONE] [dbo].[TD_VC_003] NULL,
[CO_UNID] [dbo].[TD_VC_003] NULL,
[IM_DOCU_ORIG] [dbo].[TD_NU_016_004] NULL CONSTRAINT [DF__TDDEVO_NC__IM_DO__7869D707] DEFAULT ((0)),
[IM_CONV] [dbo].[TD_NU_016_004] NULL CONSTRAINT [DF__TDDEVO_NC__IM_CO__795DFB40] DEFAULT ((0)),
[CO_USUA_CREA] [dbo].[TD_VC_008_USUA] NOT NULL CONSTRAINT [DF__TDDEVO_NC__CO_US__7A521F79] DEFAULT (suser_sname()),
[FE_USUA_CREA] [dbo].[TD_DT_001_SIST] NOT NULL CONSTRAINT [DF__TDDEVO_NC__FE_US__7B4643B2] DEFAULT (getdate()),
[CO_USUA_MODI] [dbo].[TD_VC_008_USUA] NOT NULL CONSTRAINT [DF__TDDEVO_NC__CO_US__7C3A67EB] DEFAULT (suser_sname()),
[FE_USUA_MODI] [dbo].[TD_DT_001_SIST] NOT NULL CONSTRAINT [DF__TDDEVO_NC__FE_US__7D2E8C24] DEFAULT (getdate())
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TDDEVO_NCRP] ADD CONSTRAINT [PK__TDDEVO_N__CBFE09754381D8D3] PRIMARY KEY CLUSTERED  ([CO_EMPR], [CO_PROV], [CO_TIPO_DOCU], [NU_DOCU_PROV], [NU_CORR]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TDDEVO_NCRP] ADD CONSTRAINT [FK__TDDEVO_NCRP__436CCA3A] FOREIGN KEY ([CO_EMPR], [CO_PROV], [CO_TIPO_DOCU], [NU_DOCU_PROV]) REFERENCES [dbo].[TMDOCU_PROV] ([CO_EMPR], [CO_PROV], [CO_TIPO_DOCU], [NU_DOCU_PROV])
GO
